<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\UserRank;

?>

<div class="comment-form create_box">

    <?php $form = ActiveForm::begin(['options' => ['class' => 'layui-form']]); ?>

    <?= $form->field($model, 'user_id')->textInput(['maxlength' => true, 'class' => 'layui-input']) ?>
    <?= $form->field($model, 'article_id')->textInput(['maxlength' => true, 'class' => 'layui-input']) ?>
    <?= $form->field($model, 'parent_id')->textInput(['maxlength' => true, 'class' => 'layui-input']) ?>

    <?= $form->field($model, 'content')->textInput(['maxlength' => true, 'class' => 'layui-input']) ?>
    <?= $form->field($model, 'created_at')->textInput(['maxlength' => true, 'class' => 'layui-input']) ?>
    <?= $form->field($model, 'status')->textInput(['maxlength' => true, 'class' => 'layui-input']) ?>

    <div align='center'>
        <?= Html::submitButton($model->isNewRecord ? '添加' : '修改', ['class' => $model->isNewRecord ? 'layui-btn' : 'layui-btn layui-btn-normal']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>

